package lovedna.service;
import lovedna.core.IMessage;
import lovedna.event.OutputEvent;

/**
 * ...
 * @author liwei
 */

class OutPool extends Actor
{
	private var list:Array<IMessage>;
	public function new() {
		super();
		list = new Array<IMessage>();
		this.addEventListener(OutputEvent.PUSH, pushmessage);
	}
	private function pushmessage(e:OutputEvent):Void {
		list.push(e.msg);
	}
	public function getlist():Array<IMessage> {
		return list;
	}
}